package com.example.springbootmybatis.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class Product implements Serializable {
    private String productCode;

    private String validFrom;

    private String productName;

    private String productDescription;

    private String productCategory;

    private BigDecimal productUnitprice;

    private String productInventory;

    private String validTo;

    private String insertUsercode;

    private Date insertTime;

    private static final long serialVersionUID = 1L;

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public String getValidFrom() {
        return validFrom;
    }

    public void setValidFrom(String validFrom) {
        this.validFrom = validFrom;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductDescription() {
        return productDescription;
    }

    public void setProductDescription(String productDescription) {
        this.productDescription = productDescription;
    }

    public String getProductCategory() {
        return productCategory;
    }

    public void setProductCategory(String productCategory) {
        this.productCategory = productCategory;
    }

    public BigDecimal getProductUnitprice() {
        return productUnitprice;
    }

    public void setProductUnitprice(BigDecimal productUnitprice) {
        this.productUnitprice = productUnitprice;
    }

    public String getProductInventory() {
        return productInventory;
    }

    public void setProductInventory(String productInventory) {
        this.productInventory = productInventory;
    }

    public String getValidTo() {
        return validTo;
    }

    public void setValidTo(String validTo) {
        this.validTo = validTo;
    }

    public String getInsertUsercode() {
        return insertUsercode;
    }

    public void setInsertUsercode(String insertUsercode) {
        this.insertUsercode = insertUsercode;
    }

    public Date getInsertTime() {
        return insertTime;
    }

    public void setInsertTime(Date insertTime) {
        this.insertTime = insertTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", productCode=").append(productCode);
        sb.append(", validFrom=").append(validFrom);
        sb.append(", productName=").append(productName);
        sb.append(", productDescription=").append(productDescription);
        sb.append(", productCategory=").append(productCategory);
        sb.append(", productUnitprice=").append(productUnitprice);
        sb.append(", productInventory=").append(productInventory);
        sb.append(", validTo=").append(validTo);
        sb.append(", insertUsercode=").append(insertUsercode);
        sb.append(", insertTime=").append(insertTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

}